import * as types from './mutation-types'

export default {
  setUserInfo({ commit }, userInfo) {
    commit(types.SET_USER_INFO, userInfo);
  },
  setToken({ commit }, token) {
    commit(types.SET_TOKEN, token);
  },
  getAllPhotos({ commit }, photos) {
    commit(types.GET_ALL_PHOTOS, photos);
  },
  setPhotoSort({ commit }, type) {
    commit(types.SET_PHOTO_SORT, type);
  }
}
